
<link rel="stylesheet" href="../addons/jy_sns/custom/templates/mobile/images/common.css?v=2019" />
<style type="text/css">
    .sns-content-info{max-height:4rem;line-height: 1rem;overflow: hidden;}
    .sns-card-show{padding:0 0.5rem 0.5rem;height:1.5rem;display: block;font-style: normal;color:#0290be;font-size:0.7rem;}
	.fui-card-content img{max-height:100%}
</style>
<div class='fui-page fui-page-current  fui-page-current sns-board-page'>
    <div class="fui-content">
        <div class="fui-shopsign">
            <div class="store">
                <img class="storeimg" src="{{tomedia(pagedata.board.banner) || '../addons/jy_sns/images/banner.png'}}" style="max-height:200px"/>
                <div class="fui-list-group" style="margin:5px;">
                    <div class="fui-list">
                        <div class="fui-list-media">
                            <img src="{{tomedia(pagedata.board.logo || '../core/resource/images/nopic.jpg')}}">
                        </div>
                        <div class="fui-list-inner">
                            <div class="title">{{pagedata.board.title}}</div>
                            <div class="text" style="color:#fff;">话题 {{pagedata.postcount}} 关注{{pagedata.followcount}}</div>
                        </div>
                        <div class="fui-list-media follow">                  
                            <span ng-if="pagedata.isfollow ==1" ng-class="{'btn-warning':pagedata.isfollow!=1}" ng-class="{'btn-default':pagedata.isfollow==1}" class="btn  btn-sm"  id="btnFollow">
                                
                                <i  class="icon icon-check"></i> 已关注
                                
                            </span>
							 <span   ng-click='pagedata.follow()' ng-if="pagedata.isfollow !=1" ng-class="{'btn-warning':pagedata.isfollow!=1}" ng-class="{'btn-default':pagedata.isfollow==1}" class="btn  btn-sm" id="btnFollow">
                                
                               <i ng-click='pagedata.follow()' class="icon icon-add"></i> 关注
                                
                            </span>
						
                        </div>
						
                    </div>
                </div>
            </div>
            <div class="menu">
                <a class="item on" href="javascript:void(0);">
                    <p class="text"><i class="icon icon-shouye"></i> 首页</p>
                </a>
                <a class="item external" ng-click="access_json('/board.best//id='+pagedata.board.id)" >
                    <p class="text"><i class="icon icon-creditlevel"></i> 精华区</p>
                </a>
                <a class="item external"  ng-click="access_json('/board.relate//id='+pagedata.board.id)">
                    <p class="text"><i class="icon icon-box"></i> 相关版块</p>
                </a>
				 <a class="item external"  ng-click="access_json('/board.index/add/id='+pagedata.board.id)">
                    <p class="text"><i class="icon icon-shuru"></i> 发布话题</p>
                </a>
            </div>       
            <div ng-if="pagedata.tops!=null" class="fui-cell-group sns-top-group" style="margin-top:0">
                <a ng-repeat="row in pagedata.tops" class="fui-cell" ng-click="access_json('/post.index//id='+row.id)"  data-nocache="true">
                    <div class="fui-cell-info">
                        <div class="fui-label" ng-class="{'fui-label-warning':row.istop==1}" ng-class="{'fui-label-primary':row.istop!=1}">置顶</div>
                        {{row.title}}
                    </div>
                    <div class="fui-cell-remark"></div>
                </a>
            </div>
			<div class="fui-cell-group sns-top-group" style="margin-top:0">
                <a ng-repeat="row in pagedata.tielist" class="fui-cell" ng-click="access_json('/post.index//id='+row.id)"  data-nocache="true">
                    <div class="fui-cell-info">
                        {{row.title}}
                    </div>
                    <div class="fui-cell-remark"></div>
                </a>
            </div>
        </div>
        <div class="container"></div>   
		<div ng-include="sys_html('_list')"></div>
    </div>
</div>

<div id="sns-board-post-page" ng-if="pagedata.op=='add'" class='fui-page sns-board-post-page'>
    <script type="text/javascript">
        $(function () {
            $(".btn-add-post").off('click').on('click',function () {
                $(".fui-cell-info .post-input").val('');
                $(".fui-cell-info .icon-pic").empty();
            })
        })
    </script>
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback()">取消</a>
        </div>
        <div class="title">发表话题</div>
        <div class="fui-header-right"></div>
    </div>
    <div class="fui-content">
		<div class="fui-cell-group" style="margin-bottom:1rem;">
			<div class="fui-cell must">
                <div class="fui-cell-label" style="width:7rem">选择论坛板块</div>
				 <select class="weui_select" name="cateid2" ng-model="pagedata.item.id">
						<option value="" selected="selected">选择板块</option>
                        <option ng-repeat="q in pagedata.boards" ng-selected="pagedata.item.id==q.id" value="{{q.id}}">{{q.title}}</option>
                  </select>
            </div>
		  </div>
        <div class="fui-cell-group" style="margin-top:0;">
            <div class="fui-cell">
                <div class="fui-cell-info">
                    <input type="text" class="fui-input post-input" ng-model="pagedata.item.title" placeholder="标题 3-25个字" id="title" minlength="3" maxlength="25"/>
                </div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-info">
                    <textarea placeholder="内容 10-1000个字" ng-model="pagedata.item.content" class="post-input" rows="8" id="content" minlength="10" maxlength="1000"></textarea>
                </div>
            </div>        
				<div class="fui-list jump">
								<a class="fui-list-media" ng-if="pagedata.item.images.length>0">
									<img ng-repeat="pic in pagedata.item.images" class="round" src="{{tomedia(pic) || '../core/resource/images/nopic.jpg'}}" />
								</a>
								<a class="fui-list-media weui_uploader_input_wrp">
									<input class="weui_uploader_input" ng-click="images(pagedata.item,'images')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
								</a>
							</div>
            
        </div>
        <a ng-click="post(pagedata.item,'post')" id="btnSend" class="btn btn-sns-submit">发表</a>
    </div>

</div>
<!--投诉start-->
<div ng-if="pagedata.op=='complain'" class='fui-page sns-board-reply-page'>
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back">取消</a>
        </div>
        <div class="title">投诉</div>
        <div class="fui-header-right"></div>
    </div>
    <div class="fui-content navbar">
        <div class="fui-cell-group" style="margin-top:0;">
            <div class="complain-title">
                我要投诉的是<span id="post_member"></span>的<span class="complain-type-span"></span>
            </div>
            <input type="hidden" id="complain_type" name="complain_type" value="">
            <div class="complain-type">
                <p>请您选择投诉类别：</p>
               
                <span ng-repeat="item in pagedata.catelist" class="fui-lg-1 fui-md-2 fui-sm-3 fui-xs-4"><a href="javascript:void(0);" data-type="{{item.id}}">{{item.name}}</a></span>
                
                <span class="fui-lg-1 fui-md-2 fui-sm-3 fui-xs-4"><a href="javascript:void(0);" data-type="-1">其他</a></span>
                <div style="clear:both;"></div>
            </div>
            <div class="fui-cell">
                <div class="fui-cell-info">
                    <textarea placeholder="内容 10-1000个字" rows="8" id="complain_text"></textarea>
                </div>
            </div>
            <div class="fui-cell reply-func-cell">
                <div class="fui-cell-info post-func">
                    <i class="icon icon-pic" id="complain-pic"></i>
                </div>
            </div>
            <div ng-if="pagedata.board.noimage!=1" class='fui-cell complain-image'>
                <div class='fui-cell-info'>
                    <ul class="fui-images fui-images-md"></ul>
                    <div class="fui-uploader fui-uploader-md"
                         data-max="{{set.imagesnum}}"
                         data-count="0">
                        <input type="file" name='complainimg[]' id='complainimg{{g.id}}' multiple="" accept="image/*" >
                    </div>
                </div>
            </div>
           
        </div>
        <a href="javascript:void(0);" id="btnCompSend" class="btn btn-sns-submit">提交</a>
    </div>
</div>
<div ng-include="sys_html('_menu')"></div>
<script language='javascript'>
if(scope.pagedata.op=='main'){
	scope.tool.get_list('jy_sns/index/getlist/bid='+scope.pagedata.board.id);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_sns/index/getlist/');
	}
}	
</script>


